<div id="content">
    <div id="page-heading">
        <h1>Customers Information</h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
            </th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
            </th>
	</tr>
	<tr>
            <td id="tbl-border-left"></td>
            <td valign="top">
                <div id="content-table-inner">
                    <div id="search-bar">
                        <script type="text/javascript">
                            $(document).ready(function() {
                              $('.placeholder').placeplaceholder();
                            });
                        </script>
                        <?php 
                        echo $this->Form->create("Customer", array('url'=>array('controller'=>'pages','action' => 'enquiry'))); 
                        echo $this->Form->input('card', array(
                                                'label'     => false,
                                                'div'       => false,
                                                'class'     =>'placeholder',
                                                'placeholder'=>'Customer card number',
                                                'class'     => 'input-form med')
                            );
                        echo $this->Form->submit('Search', array('class' => 'button','id'=>"Search",'div'=>false));
                        echo $this->Form->end();
                        ?>
                    </div>
                    <?php 
                        if(isset($customer)){ ?>
                        <?php if(!empty($customer)){
                            ?>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                            <tr>
                                                <th valign="top">Name:</th>
                                                <td><?php echo $customer["Customer"]['f_name']." ".$customer["Customer"]['l_name'] ?></td>
                                                <td></td> 
                                            </tr>
                                            <tr>
                                                <th valign="top">Email:</th>
                                                <td><?php echo $customer["Customer"]['email']?></td>
                                                <td></td> 
                                            </tr>
                                            <tr>
                                                <th valign="top">Balance Point:</th>
                                                <td><?php echo $customer["Customer"]['point']?></td>
                                                <td></td> 
                                            </tr>
                                            <tr>
                                                <th valign="top">Balance :</th>
                                                <td><?php echo $customer["Customer"]['balance']?></td>
                                                <td></td> 
                                            </tr>
                                        </table>  
                                    </td>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                       <?php echo $this->Html->image('../images/shared/blank.gif', array('alt' => 'blank', 'width' => '695', 'height' => '1')); ?>
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                        <?php }else{ 
                            echo "Sorry ! there's no customer match with this card number";
                        }} ?>
                    <div class="clear"></div>
                </div>
            </td>
            <td id="tbl-border-right"></td>
        </tr>
        <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
        </tr>
    </table>
    <div class="clear">&nbsp;</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
            jQuery("#customerMenu").addClass('current');
});
</script>